package com.vastcom.sigma.admin.model;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.sql.Date;

@Entity
public class Baketest {
    private String baketestid;
    private String scpc;
    private String bakerecordid;
    private Date qysj;
    private Double sz;
    private Double sf;
    private String jcr;
    private String clqk;

    @Id
    @Column(name = "baketestid")
    public String getBaketestid() {
        return baketestid;
    }

    public void setBaketestid(String baketestid) {
        this.baketestid = baketestid;
    }

    @Basic
    @Column(name = "scpc")
    public String getScpc() {
        return scpc;
    }

    public void setScpc(String scpc) {
        this.scpc = scpc;
    }

    @Basic
    @Column(name = "bakerecordid")
    public String getBakerecordid() {
        return bakerecordid;
    }

    public void setBakerecordid(String bakerecordid) {
        this.bakerecordid = bakerecordid;
    }

    @Basic
    @Column(name = "qysj")
    public Date getQysj() {
        return qysj;
    }

    public void setQysj(Date qysj) {
        this.qysj = qysj;
    }

    @Basic
    @Column(name = "sz")
    public Double getSz() {
        return sz;
    }

    public void setSz(Double sz) {
        this.sz = sz;
    }

    @Basic
    @Column(name = "sf")
    public Double getSf() {
        return sf;
    }

    public void setSf(Double sf) {
        this.sf = sf;
    }

    @Basic
    @Column(name = "jcr")
    public String getJcr() {
        return jcr;
    }

    public void setJcr(String jcr) {
        this.jcr = jcr;
    }

    @Basic
    @Column(name = "clqk")
    public String getClqk() {
        return clqk;
    }

    public void setClqk(String clqk) {
        this.clqk = clqk;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Baketest baketest = (Baketest) o;

        if (baketestid != null ? !baketestid.equals(baketest.baketestid) : baketest.baketestid != null) return false;
        if (scpc != null ? !scpc.equals(baketest.scpc) : baketest.scpc != null) return false;
        if (bakerecordid != null ? !bakerecordid.equals(baketest.bakerecordid) : baketest.bakerecordid != null)
            return false;
        if (qysj != null ? !qysj.equals(baketest.qysj) : baketest.qysj != null) return false;
        if (sz != null ? !sz.equals(baketest.sz) : baketest.sz != null) return false;
        if (sf != null ? !sf.equals(baketest.sf) : baketest.sf != null) return false;
        if (jcr != null ? !jcr.equals(baketest.jcr) : baketest.jcr != null) return false;
        if (clqk != null ? !clqk.equals(baketest.clqk) : baketest.clqk != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = baketestid != null ? baketestid.hashCode() : 0;
        result = 31 * result + (scpc != null ? scpc.hashCode() : 0);
        result = 31 * result + (bakerecordid != null ? bakerecordid.hashCode() : 0);
        result = 31 * result + (qysj != null ? qysj.hashCode() : 0);
        result = 31 * result + (sz != null ? sz.hashCode() : 0);
        result = 31 * result + (sf != null ? sf.hashCode() : 0);
        result = 31 * result + (jcr != null ? jcr.hashCode() : 0);
        result = 31 * result + (clqk != null ? clqk.hashCode() : 0);
        return result;
    }
}
